package com.gx.smart.construction.ui.login.viewmodel;

import android.text.Editable;

import androidx.databinding.ObservableField;

/**
 * @author: xiaosy
 * 时间: 2022/1/19
 * @Description: java类作用描述
 * @Version: 1.0
 **/
public class UserModel {
    public final ObservableField<String> phoneNumber = new ObservableField<>();
    public void changePhone(Editable phone) {
        this.phoneNumber.set(phone.toString());
    }

    public void changePhone(String phone) {
        this.phoneNumber.set(phone);

    }

    public String getPhoneNumber() {
        if(this.phoneNumber.get() == null){
            return "";
        }
        return this.phoneNumber.get();
    }
}
